﻿@model Blog_Domain.Post
@{
    ViewBag.Title = "Add";
}

<h2>Add</h2>
<div>
    @using (Html.BeginForm())
    {
        @Html.LabelFor(m => m.Title);
        @Html.TextBoxFor(m => m.Title);
        
        @Html.LabelFor(m => m.Body);
        @Html.TextAreaFor(m => m.Body);
        
        <input type="submit" value="Add new post" />
    }
</div>